package com.platform.system.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import com.platform.common.core.domain.BaseEntity;

/**
 * 商品类别对象 pro_category
 *
 * @author platform
 * @date 2025-02-23
 */
@Schema(name = "商品类别对象", description = "")
public class ProCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @Excel(name = "序号")
    @Schema(description = "序号", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long id;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    @Schema(description = "分类名称", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String name;

    /**
     * 分类编号
     */
    @Excel(name = "分类编号")
    @Schema(description = "分类编号", implementation = String.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private String no;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @Schema(description = "用户id", implementation = Long.class, requiredMode = Schema.RequiredMode.AUTO, example = "")
    private Long userId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getNo() {
        return no;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("no", getNo())
                .append("userId", getUserId())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
